﻿using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using VOL.Core.Utilities;
using VOL.Entity.AttributeManager;
using VOL.Entity.DomainModels.WorkforceManage;
using VOL.SmartMecial.IServices.NurseManage;
using VOL.SmartMecial.IServices.WorkforceManage;

namespace VOL.WebApi.Controllers.SmartMecial
{
    //[Route("api/[controller]")]
    //[ApiController]

    [Route("api/NurseGroupController")]
    [PermissionTable(Name = "NurseGroupController")]
    public class NurseGroupController : ControllerBase
    {
        private readonly INurseGroupService service;
      

        public NurseGroupController(INurseGroupService service)
        {
            this.service = service;
           
        }

        [HttpGet("GetNurseGroup")]
        public List<NurseGroupModel> GetNurseGroup()
        {
            return service.GetNurseGroups();
        }
        
    }
}
